<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" type="text/css" href="../../bootstrap-3.3.7/dist/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="../../bootstrap-3.3.7/dist/css/bootstrap-theme.min.css" />
<link rel="stylesheet" type="text/css" href="../../css/index.css" />
<link rel="stylesheet" type="text/css" href="../../css/personal.css" />
<link rel="stylesheet" type="text/css" href="../../css/background.css" />

<script type="text/javascript" src="../../bootstrap-3.3.7/dist/js/jquery.min.js"></script>
<script type="text/javascript" src="../../bootstrap-3.3.7/dist/js/bootstrap.js"></script>
<script type="text/javascript" src="../../js/bootstrap-paginator.js"></script>


<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<link href="../../bootstrap-3.3.7/docs/assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
</head>
<body>
	<div class="container">
		<div class="row clearfix">
			<div class="col-md-12 column">
				<%@include file="../common/header.jsp"%>
			</div>
			<div class="col-md-11 column" style="padding-left: 80px">
				<div class="myline" style="margin-top: 10px"></div>
				<h4 class="heading">基本信息</h4>
				<div class="row">
					<form class="form-horizontal" style="padding-top: 10px">
						<div class="col-md-8">
							<div class="form-group">
								<label class="col-md-2 control-label">姓名:</label>
								<div class="col-md-4" style="padding-top: 8px">
									<span class="myfont">${zj.userzj_name}</span>
								</div>
							</div>
							
							<c:if test="${not empty zj.userzj_profession}">
								<div class="form-group">
								<label class="col-md-2 control-label">学历/职称:</label>
								<div class="col-md-9" style="padding-top: 8px">
									<span class="myfont">${zj.userzj_profession}</span>
								</div>
							</div>						
							</c:if>
							
						</div>
						<div class="col-md-4" style="padding-bottom: 20px">
							<div style="margin-left: 20px; margin-bottom: 10px;">
								<c:choose>
									<c:when test="${empty zj.userzj_picture}">
										<img class="img-thumbnail" src="../../image/user/default.jpg" style="width: 90px; height: 120px;"></img>
									</c:when>
									<c:otherwise>
										<img class="img-thumbnail" src="../../image/user/${zj.userzj_picture}" style="width: 90px; height: 120px;"></img>
									</c:otherwise>
								</c:choose>
							</div>
						</div>
					</form>
				</div>
				<div class="myline"></div>
				<div class="row" style="height: 150px">
					<div class="col-md-11">
						<h4 class="heading">研究领域</h4>
						<p style="padding-left: 60px; padding-top: 20px">${zj.userzj_region}</p>
					</div>
				</div>
				<div class="myline"></div>
				<div class="row">
					<div class="col-md-11">
						<h4 class="heading">研究成果</h4>
						<p style="padding-left: 60px; padding-top: 20px">${zj.userzj_result}</p>
					</div>
					<div class="col-md-11" style="padding-top: 10px">
						<div class="col-md-1" style="float: right; margin-right: 20px">
							<button onclick="check(&quot;${zj.userzj_id}&quot;)" type="button" style="margin-left: 10px" id="btn_query" class="btn btn-primary">问题查询</button>
						</div>
						<div class="col-md-1" style="float: right; margin-right: 10px">
							<button onclick="ask(&quot;${zj.userzj_id}&quot;,&quot;${zj.userzj_name}&quot;)" type="button" id="btn_delete" class="btn btn-primary">提问</button>
						</div>
					</div>
				</div>
			</div>
			<div class="col-md-12 column">
				<%@include file="../common/bottom.jsp"%>
			</div>
		</div>
	</div>
	
	
</body>
<script type="text/javascript">
function ask(id,name) {
	window.location.href=encodeURI("../message/addmessage.jsp?zjid="+id+"&zjname="+name);
}
function check(id) {
	window.location.href="../message/getMessageview?zjid="+id;
}
</script>
</html>